import {createStore} from 'vuex'

export default createStore({
	state:{
		city: '',
		longitude: '',
		latitude: '',
	},
	mutations:{
		getCity(state, position){
			state.city = position.city_name
			state.longitude = position.longitude ? position.longitude : ''
			state.latitude = position.latitude ? position.latitude : ''
		}
	}
})